﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="BusinessCardListPs.aspx.cs" Inherits="ServicesSheet_BusinessCardListPs" %>

<%@ Register src="../Control/SelUser.ascx" tagname="SelUser" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        allowadd="True" allowdelete="True" allowprint="True" allowupdate="True" alwaysclose="False"
        autoapplyforinsert="False" autorecordlock="False" autorecordlockmode="NoneReload"
        cachedataset="False" commandname="" commandtext="" datamember="View_BusCard"
        eof="True" keyvalues="" lastindex="-1" marker="'" masterdatasource="" packetrecords="100"
        quoteprefix="[" quotesuffix="]" remotename="" selectcommand="" 
        tablename="">
    </infolight:webdatasource>
    <infolight:webclientquery id="WebClientQuery1" runat="server" datasourceid="Master"
        font-names="Simsun" font-size="Small">
        <columns>
                <InfoLight:WebQueryColumns Caption="员工编码" Column="EmployeeId" ColumnType="ClientQueryRefValColumn"
                    DefaultValue="" NewLine="False" NotNull="False" NotNullBackColor="White" Text="" Width="120" Condition="" />
                <InfoLight:WebQueryColumns Caption="已印刷" Column="Printed" ColumnType="ClientQueryCheckBoxColumn"
                    DefaultValue="" NewLine="False" NotNull="False" NotNullBackColor="White" Text=""
                    Width="60" />
                <InfoLight:WebQueryColumns Caption="已发货" Column="Given" ColumnType="ClientQueryCheckBoxColumn"
                    DefaultValue="0" NewLine="False" NotNull="False" NotNullBackColor="White" Text=""
                    Width="60" />
            </columns>
    </infolight:webclientquery>
 <infolight:webnavigator id="WebNavigator1" runat="server" bindingobject="wgvMaster"
        width="100%" height="22px" statusstrip="WebStatusStrip1" showdatastyle="GridStyle"
        oncommand="WebNavigator1_Command" cssclass="NavigatorBar" ctlheight="25">
        <navcontrols>
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/query.gif" MouseOverImageUrl="../image/uipics/query2.gif"
                    Size="25" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print.gif" MouseOverImageUrl="../image/uipics/print2.gif"
                    Size="25" />
               
                <InfoLight:ControlItem controlname="Add" controltext="add" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/AddSheet2.gif" imageurl="../Image/UIPics/AddSheet.gif"
                mouseoverimageurl="../Image/UIPics/AddSheet2.gif" size="80">
            </InfoLight:ControlItem>
             <InfoLight:ControlItem ControlName="ClientQuery" ControlText="查看流程图" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/querySheet.gif" MouseOverImageUrl="../image/uipics/querySheet2.gif"
                    Size="80" />
            </navcontrols>
        <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
        <queryfields>
                <InfoLight:WebQueryField Caption="员工编号" Condition="=" DefaultValue="" FieldName="EmpId"
                    Mode="RefVal" RefVal="QueryEmp" />
                <InfoLight:WebQueryField Caption="工作流" Condition="=" DefaultValue="" 
                    FieldName="FlowFlag" Mode="ComboBox" RefVal="QueryFlowFlag" />
            </queryfields>
    </infolight:webnavigator>
    <table cellpadding="0" cellspacing="5" class="TbSearch" >
        <tr>
            <td align="right" style="width: 109px;">
                <asp:Label ID="Label1" runat="server" Text="员工:"></asp:Label>
            </td>
            <td style="width: 234px;">
                <uc1:SelUser ID="SelUser" runat="server" />
            </td>
            <td style="width: 233px;">
                &nbsp;<asp:DropDownList ID="QPrinted" runat="server" Width="80px">
                    <asp:ListItem Value="9">请选择</asp:ListItem>
                    <asp:ListItem Value="0">未印刷</asp:ListItem>
                    <asp:ListItem Value="1">已印刷</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width: 269px;">
                &nbsp;<asp:DropDownList ID="QGiven" runat="server" Width="72px">
                    <asp:ListItem Value="9">请选择</asp:ListItem>
                    <asp:ListItem Value="0">未发货</asp:ListItem>
                    <asp:ListItem Value="1">已发货</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="right" style="width: 286px;">
                <span class="roundbtn">
                    <asp:LinkButton ID="btnSearch" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查&nbsp;&nbsp;询&nbsp;&nbsp;&nbsp;&nbsp;"
                        OnClick="btnSearch_Click"></asp:LinkButton>
                </span>
            </td>
           <%-- <td  align="right" style="width: 414px;">
            <span class="roundbtn">
                    <asp:LinkButton ID="btnClear" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;清&nbsp;&nbsp;除&nbsp;&nbsp;&nbsp;&nbsp;"
                        OnClick="btnClear_Click"></asp:LinkButton>
                </span>
            
            </td>--%>
        
        </tr>
    </table>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" 
    aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" 
        queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        datamember="View_BusCard" createinnernavigator="False" PageSize="15" 
        onrowcommand="wgvMaster_RowCommand" onrowdatabound="wgvMaster_RowDataBound">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
                
                <asp:TemplateField HeaderText="删除" >
                    <ItemTemplate>
                    <asp:ImageButton ID="del" runat="server" ImageUrl="../image/main/Error2.gif" ></asp:ImageButton> 
                    </ItemTemplate>
                     <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
               
              
                 <asp:TemplateField HeaderText="编号" SortExpression="CardId">
                    <ItemTemplate>
                    <a href='BusinessCard.aspx?FLOWFILENAME=FL\BusinessCard&NAVMODE=Modify&FLNAVMODE=Submit&id=<%# Eval("CardId") %>&flowflag=<%# Eval("FlowFlag") %>&EmpId=<%# Eval("EmployeeId") %>'><%# Eval("CardId")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                                
                <asp:BoundField DataField="EmployeeId" HeaderText="员工工号" SortExpression="EmployeeId" ReadOnly="True" />
                <asp:BoundField DataField="EmpName" HeaderText="员工姓名" SortExpression="EmpName" ReadOnly="True" />
                <asp:BoundField DataField="DepartmentName" HeaderText="部门" SortExpression="DepartmentName" ReadOnly="True" />
                <asp:BoundField DataField="NumCount" HeaderText="数量" SortExpression="NumCount" ReadOnly="True" />
                <asp:CheckBoxField DataField="Printed" HeaderText="已印刷" SortExpression="Printed" />
                <asp:CheckBoxField DataField="Given" HeaderText="已发货" SortExpression="Given" />
                <asp:BoundField DataField="FlowFlagName" HeaderText="流程状态" SortExpression="FlowFlagName" ReadOnly="True" />
  </columns>
        <rowstyle backcolor="#EFF3FB"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
    </infolight:webgridview>
</asp:Content>
